#pragma once
#include "unordered_Hashtable.h"

template<class K, class V, class Hash = HashFunc<K>>
class my_unordered_set
{
	struct SetKeyOfT
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
	
public:
	typedef typename Open::HashTable<K, const K, SetKeyOfT, Hash>::iterator iterator;

	iterator begin()
	{
		return st.begin();
	}

	iterator end()
	{
		return st.end();
	}

	bool insert(const K& key)
	{
		return st.insert(key);
	}

private:
	Open::HashTable<K, const K, SetKeyOfT, Hash> st;
};